/**
 * KopsoxFramework
 * Copyright (C) 2010 Free Software Foundation, Inc. <http://fsf.org/>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.kopsox.util.xml.data.impl;

import java.util.Set;

import org.kopsox.util.xml.data.XMLValidatorDescriptor;

/**
 * @author Konrad Renner - 23.07.2010
 *
 */
public class XMLValidatorDescriptorImpl implements XMLValidatorDescriptor {
	
	private String name;
	private String className;
	private Set<String> handlers;

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getClassName() {
		return className;
	}

	@Override
	public Set<String> getHandlers() {
		return handlers;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param className the className to set
	 */
	public void setClassName(String className) {
		this.className = className;
	}

	/**
	 * @param handlers the handlers to set
	 */
	public void setHandlers(Set<String> handlers) {
		this.handlers = handlers;
	}
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("XMLValidatorDescriptorImpl[");
		sb.append("name=");
		sb.append(name);
		sb.append(",className=");
		sb.append(className);
		sb.append(",handlers=");
		sb.append(handlers);
		sb.append("]");
		
		return sb.toString();
	}
}
